package cn.com.mtmming.service;


import cn.com.mtmming.mapper.UsersMapper;
import cn.com.mtmming.vo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class UserService implements IUserService {

    @Autowired
    UsersMapper usersMapper;

    public  String insertUsers(){
        Users users  =new Users();
        users.setUsername("1111");
        users.setNickName("2222");
        usersMapper.insert(users);
      return   users.getUsername();
    }



}
